// specobj.txt 

// A very simple and important script. When the object is used,
// triggers a hardcoded special encounter

// Cell 0 - The special encounter to run.
// Cell 1,2 - A stuff done flag. if non-zero, the converation no longer
//   happens when the object is used. These can both be left at 0 (for no flag).

beginobjectscript; // talking object

variables;

short did_dest = 0;

body;

beginstate INIT_STATE;
	set_obj_act_at_dist(ME,1);
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	if ((did_dest == 0) && (get_sdf(get_memory_cell(1),get_memory_cell(2)) > 0)) {
		did_dest = 1;
		kill_object(ME,0);
		}
	break;

beginstate USE_STATE;
	print_str_color("The vat is sealed shut. It is searingly hot to the touch.",2);

	
break;
